import React from 'react';
import { inject, observer } from 'mobx-react';
import { Modal, message, Button, Tag,Spin,Tabs  } from "antd";

import { WeaLocaleProvider, WeaTop, WeaRightMenu, WeaTab, WeaReqTop, WeaDialog, WeaTag,WeaAlertPage,WeaDatePicker} from 'ecCom';
import './index.css';
import { WeaTableNew } from "comsMobx";
import {Condition} from '../list/listCondition';
import {Text} from '../util/text';
const text = new Text();
const TabPane = Tabs.TabPane;

const WeaTable = WeaTableNew.WeaTable;
const getLabel = WeaLocaleProvider.getLabel;

@inject("infoCreateFeedBackStore")
@observer
class infoCreateFeedBack extends React.Component {

    constructor(props) {
        super(props);
        this.state = {
            
        }
    }

    componentDidMount() {
        const {infoCreateFeedBackStore} = this.props;
        infoCreateFeedBackStore.doHandleDate();
    }
    
    render() {
        const { infoCreateFeedBackStore } = this.props;
        const {dateValue,changeDateSelect} = infoCreateFeedBackStore;
        return (
            <div>
                <div className="info-feedback-dateselect" >
                    <span style={{fontSize:'25px'}}>日期选择 </span>
                        <WeaDatePicker
                            noInput
                            value={dateValue}
                            format="YYYY-MM"
                            onChange={value => changeDateSelect(value)}
                        /><br/>
                        <Button type="primary" style={{marginTop:"20px"}} onClick={()=>this.createfeedback()}>生成反馈函</Button>
                </div>
            </div>
        )
    }

    createfeedback=()=>{
        const{infoCreateFeedBackStore}=this.props;
        infoCreateFeedBackStore.createfeedback();
    }

}

export default infoCreateFeedBack ;